package com.ivi.car.module.home.view.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ivi.car.R;
import com.ivi.car.bean.home.CarMaintainInfoBean;

import java.util.List;

/**
 * Copyright
 * author zhengcheng
 * date 2018/3/7
 * describe
 * history
 */

public class CarMaintainAdapter extends BaseQuickAdapter<CarMaintainInfoBean, BaseViewHolder> {
  public CarMaintainAdapter(int layoutResId, @Nullable List<CarMaintainInfoBean> data) {
    super(layoutResId, data);
  }

  @Override
  protected void convert(BaseViewHolder helper, CarMaintainInfoBean item) {
    helper.setText(R.id.home_maintain_title_tv, item.getTitle())
        .setText(R.id.home_maintain_subtitle_tv, item.getDetailInfo());
  }
}
